package top.zsyle.sycc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import top.zsyle.sycc.fallback.CourseMarketFallbackFactory;
import top.zsyle.sycc.result.JsonResult;

@FeignClient(value = "service-course", path = "courseMarket", contextId = "courseMarketService", fallbackFactory = CourseMarketFallbackFactory.class)
public interface CourseMarketService {

    @RequestMapping(value = "/{id}",method = RequestMethod.GET)
    JsonResult get(@PathVariable("id")Long id);

}
